package com.HAPOERP_EJB.persistance;

import java.io.Serializable;
import java.lang.String;
import javax.persistence.*;
import javax.ws.rs.DefaultValue;

/**
 * Entity implementation class for Entity: CV
 *
 */
@Entity
@NamedQueries({@NamedQuery(name="CV.findAll",query="SELECT c from CV c"),@NamedQuery(name="CV.findAllbyscreen",query="SELECT c from CV c WHERE c.Screen= :var and c.offerid= :var2"),@NamedQuery(name="CV.findByOfferid",query="SELECT c from CV c WHERE c.offerid= :id and c.Screen='0' or c.Screen is null") , @NamedQuery(name="CV.delet",query="DELETE FROM CV c WHERE c.id= :var"), @NamedQuery(name="CV.deletscreen",query="DELETE FROM CV c WHERE c.Screen= :var")})
public class CV implements Serializable {

	
	private String name;   
	@Id@GeneratedValue
	private int id;
	private String prenom;
	private String compling;
	private String compinf;
	private String compfina;
	private String compind;
	private String titre;
	private String extitle;
	private String exdate;
	private String resume;
	private String temp;
	private String offerid;
	private String rue;
	private String ville;
	private String email;
	private String tel;
	private String annee;
	private String fordescr;
	@DefaultValue(value="0")
	private String Screen;
	private static final long serialVersionUID = 1L;

	public CV() {
		super();
	}   
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}   
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}   
	public String getPrenom() {
		return this.prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}   
	public String getCompling() {
		return this.compling;
	}

	public void setCompling(String compling) {
		this.compling = compling;
	}   
	public String getCompinf() {
		return this.compinf;
	}

	public void setCompinf(String compinf) {
		this.compinf = compinf;
	}   
	public String getCompfina() {
		return this.compfina;
	}

	public void setCompfina(String compfina) {
		this.compfina = compfina;
	}   
	public String getTitre() {
		return this.titre;
	}

	public void setTitre(String titre) {
		this.titre = titre;
	}   
	public String getResume() {
		return this.resume;
	}

	public void setResume(String resume) {
		this.resume = resume;
	}   
	public String getTemp() {
		return this.temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}   
	public String getOfferid() {
		return this.offerid;
	}

	public void setOfferid(String offerid) {
		this.offerid = offerid;
	}
	public String getRue() {
		return rue;
	}
	public void setRue(String rue) {
		this.rue = rue;
	}
	public String getVille() {
		return ville;
	}
	public void setVille(String ville) {
		this.ville = ville;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getCompind() {
		return compind;
	}
	public void setCompind(String compind) {
		this.compind = compind;
	}
	public String getAnnee() {
		return annee;
	}
	public void setAnnee(String annee) {
		this.annee = annee;
	}
	public String getFordescr() {
		return fordescr;
	}
	public void setFordescr(String fordescr) {
		this.fordescr = fordescr;
	}
	
	public String getExdate() {
		return exdate;
	}
	public void setExdate(String exdate) {
		this.exdate = exdate;
	}
	public String getExtitle() {
		return extitle;
	}
	public void setExtitle(String extitle) {
		this.extitle = extitle;
	}
	public String getScreen() {
		return Screen;
	}
	public void setScreen(String screen) {
		Screen = screen;
	}
   
	
}
